package com.his.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.his.bean.DzmHisRegisteredfee;
import com.his.service.DzmHisRegisteredfeeService;
import com.his.mapper.DzmHisRegisteredfeeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
*
*/
@Service
public class DzmHisRegisteredfeeServiceImpl extends ServiceImpl<DzmHisRegisteredfeeMapper, DzmHisRegisteredfee>
implements DzmHisRegisteredfeeService{
@Autowired
DzmHisRegisteredfeeMapper dzmHisRegisteredfeeMapper;
    @Override
    public List<DzmHisRegisteredfee> selectAll(DzmHisRegisteredfee dzmHisRegisteredfee) {
        return dzmHisRegisteredfeeMapper.selectAll(dzmHisRegisteredfee);
    }

    @Override
    public void insert(DzmHisRegisteredfee dzmHisRegisteredfee) {
        dzmHisRegisteredfeeMapper.add(dzmHisRegisteredfee);
    }

    @Override
    public DzmHisRegisteredfee selectById(Integer regId) {

        return  dzmHisRegisteredfeeMapper.selectbyid(regId);
    }

    @Override
    public void updatefee(DzmHisRegisteredfee dzmHisRegisteredfee) {
        dzmHisRegisteredfeeMapper.updatefee(dzmHisRegisteredfee);
    }

    @Override
    public void delete(Integer regId) {
        dzmHisRegisteredfeeMapper.deletefee(regId);
    }

    @Override
    public int getNewId() {
        return dzmHisRegisteredfeeMapper.getNewId();
    }

    @Override
    public void addReg(Map<String, Object> map) {
        dzmHisRegisteredfeeMapper.addReg(map);
    }
}
